<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * Controller for containers.
 * @package cms-containers/conrollers
 * @category Controller
 * 
 * @author Mark Angelo Angulo
 * @copyright (c) 2014
 */
class Container extends CMS_Controller {

    /**
     *  Constructor method.
     */
    function __construct()
    {
        parent::__construct();
    }

    /**
     * Default method called when nothing is specified.
     * Displays panels.
     * @access public
     */
    public function index()
    {
        // active navigation
        $data['navigation'] = 'containers';

        // build breadcrumb
        $this->breadcrumb->clear();
        $this->breadcrumb->add_crumb('Containers');

        // build template
        $this->template
                ->title('Panels')
                ->set_layout('main')
                ->set_partial('navigation', 'layouts/navigation')
                ->build('panels', $data);
        
    }
    
    public function panels()
    {
        // active navigation
        $data['navigation'] = 'containers';

        // build breadcrumb
        $this->breadcrumb->clear();
        $this->breadcrumb->add_crumb('Containers');
        $this->breadcrumb->add_crumb('Panels');

        // build template
        $this->template
                ->title('Panels')
                ->set_layout('main')
                ->set_partial('navigation', 'layouts/navigation')
                ->build('panels', $data);
    }
        
    public function tabs()
    {
        // active navigation
        $data['navigation'] = 'containers';

        // build breadcrumb
        $this->breadcrumb->clear();
        $this->breadcrumb->add_crumb('Containers');
        $this->breadcrumb->add_crumb('Tabs');

        // build template
        $this->template
                ->title('Tabs')
                ->set_layout('main')
                ->set_partial('navigation', 'layouts/navigation')
                ->build('tabs', $data);
    }
    
    public function tab_settings()
    {
        // active navigation
        $data['navigation'] = 'containers';

        // build breadcrumb
        $this->breadcrumb->clear();
        $this->breadcrumb->add_crumb('Containers');
        $this->breadcrumb->add_crumb('Tab Settings');

        // build template
        $this->template
                ->title('Tab Settings')
                ->set_layout('main')
                ->set_partial('navigation', 'layouts/navigation')
                ->build('tab_settings', $data);
    }
    
    public function panel_settings()
    {
        // active navigation
        $data['navigation'] = 'containers';

        // build breadcrumb
        $this->breadcrumb->clear();
        $this->breadcrumb->add_crumb('Containers');
        $this->breadcrumb->add_crumb('Panel Settings');

        // build template
        $this->template
                ->title('Panel Settings')
                ->set_layout('main')
                ->set_partial('navigation', 'layouts/navigation')
                ->build('panel_settings', $data);
    }
    
}

/* End of file dashboard.php */
/* Location: ./application/modules/test/controllers/dashboard.php */